#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n = 0;
    int m = 0;
    int i = 0;
    int sum = 0;
    int neg_num_count = 0;
    int pos_num_count = 0;
    double average = 0.0;
    while (scanf("%d", &n) == 1)
    {
        for (i = 0;i < n;i++)
        {
            scanf("%d", &m);
            if (m < 0)
            {
                neg_num_count++;
            }
            if (m > 0)
            {
                sum += m;
                pos_num_count++;
            }
        }
        if (pos_num_count == 0)
        {
            printf("%d %.1f", neg_num_count, 0.0f);
        }
        else
        {
            average = sum / (double)pos_num_count;
            printf("%d %.1f", neg_num_count, average);
        }
        sum = 0;
        neg_num_count = 0;
        pos_num_count = 0;
        average = 0.0;
    }
}